package com.toilet.easyvideo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @TableName upload_file
 */
@TableName(value = "upload_file")
@Data
public class UploadFile implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 主键id,配置自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文件的md5值
     */
    @TableField(value = "file_md5")
    private String fileMd5;

    /**
     * 文件大小
     */
    @TableField(value = "file_size")
    private Long fileSize;

    /**
     * 文件名称
     */
    @TableField(value = "file_name")
    private String fileName;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 文件类型
     */
    @TableField(value = "file_type")
    private String fileType;
}